<!DOCTYPE html>
<html>
{include file="public/head"}
<body>
<div >
	<form method="post" action="{:url('admin/power/save_opt')}" class="layui-form layui-form-pane">

		<div class="layui-form-item">
			<label class="layui-form-label">用户ID</label>
			<div class="layui-input-block">
				<input type="text" name="user_id" class="layui-input" value="{$user_id}">
			</div>
		</div>
            <div style="text-align: center;"> 
                [编辑权限为最高权限]<br />
            </div>

		<div class="layui-form-item" pane>
			<label class="layui-form-label">选择权限 </label>
			<div class="layui-input-block">
				<input type="checkbox" name="problem_edt" title="编辑问题" {eq name="power['0']" value="1"}checked{/eq}>
				<input type="checkbox" name="problem_add" title="添加问题" {eq name="power['1']" value="1"}checked{/eq}>
				<input type="checkbox" name="problem_rejudge" title="重判问题" {eq name="power['2']" value="1"}checked{/eq}>
				<input type="checkbox" name="contest_edt" title="编辑竞赛" {eq name="power['3']" value="1"}checked{/eq}>
				<input type="checkbox" name="contest_add" title="添加竞赛" {eq name="power['4']" value="1"}checked{/eq}>
				<input type="checkbox" name="news_edt" title="编辑新闻" {eq name="power['5']" value="1"}checked{/eq}>
				<input type="checkbox" name="radio_edt" title="编辑广播" {eq name="power['6']" value="1"}checked{/eq}>
				<input type="checkbox" name="news_add" title="添加新闻" {eq name="power['7']" value="1"}checked{/eq}>
				<input type="checkbox" name="pws_reset" title="用户管理" {eq name="power['8']" value="1"}checked{/eq}>
				<input type="checkbox" name="make_id" title="社区管理" {eq name="power['9']" value="1"}checked{/eq}>
                                <input type="checkbox" name="p11" title="标签管理" {if condition="isset($power['11'])&&$power['11']=='1'"}checked{/if}>
                        </div>
		</div>
                        <br />
		<div class="layui-form-item" pane>
			<label class="layui-form-label">最高权限 </label>
			<div class="layui-input-block">
				<input type="checkbox" name="power_edt" title="编辑权限" {eq name="power['10']" value="1"}checked{/eq}>
			</div>
                        
		</div>
		<div style="text-align: center;">
			<input type="submit" value="保存" class="layui-btn" >
		</div>
	</form>
</div>
{include file="public/end"}
<script type="text/javascript">
	layui.use('form',function() {
		var form = layui.form;
	});
</script>
</html>